package gui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.custom.TableCursor;
import org.eclipse.swt.custom.ViewForm;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.CoolBar;
import org.eclipse.swt.widgets.CoolItem;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Spinner;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;

public class ClientForm {

	protected Shell shell;

	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			ClientForm window = new ClientForm();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Open the window
	 */
	public void open() {
		final Display display = Display.getDefault();
		createContents();
		shell.open();
		shell.layout();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
	}

	/**
	 * Create contents of the window
	 */
	protected void createContents() {
		shell = new Shell(SWT.MIN   |   SWT.CLOSE   |   SWT.TITLE);
		shell.setSize(537, 678);
		shell.setText("DataManagement");

		final Text text = new Text(shell,SWT.V_SCROLL|SWT.BORDER|SWT.H_SCROLL);
		text.setBounds(10, 346, 511, 261);

		final Label label = new Label(shell, SWT.NONE);
		label.setText("Label");
		label.setBounds(10, 623, 307, 27);

		final TabFolder tabFolder = new TabFolder(shell, SWT.NONE);
		tabFolder.setBounds(10, 90, 511, 250);

		final TabItem resultTabItem = new TabItem(tabFolder, SWT.NONE);
		resultTabItem.setText("Result");

		final CoolBar coolBar = new CoolBar(shell, SWT.NONE);
		coolBar.setBounds(10, 59, 511, 25);

		final CoolItem newItemCoolItem = new CoolItem(coolBar, SWT.PUSH);
		newItemCoolItem.setText("New item");

		final ToolBar toolBar = new ToolBar(coolBar, SWT.NONE);
		newItemCoolItem.setControl(toolBar);

		final ToolItem newItemToolItem = new ToolItem(toolBar, SWT.PUSH);
		newItemToolItem.setText("New item");

		final ToolItem newItemToolItem_1 = new ToolItem(toolBar, SWT.PUSH);
		newItemToolItem_1.setText("New item");
		//
	}

}
